package com.xxx.service;

import com.xxx.domain.PayOrder;
import com.baomidou.mybatisplus.service.IService;
import com.xxx.dto.AlipayNotifyDto;
import com.xxx.dto.PayApplyDto;
import com.xxx.result.JSONResult;

import java.util.HashMap;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jh
 * @since 2025-09-11
 */
public interface IPayOrderService extends IService<PayOrder> {

    /**
     * 查询支付单接口
     * @param orderNo
     * @return
     */
    JSONResult checkPayOrder(String orderNo);

    /**
     * 支付的接口
     * @param payApplyDto
     */
    String apply(PayApplyDto payApplyDto);

    /**
     * 支付异步通知
     * @param alipayNotifyDto
     * @return
     */
    String asyncNotify(AlipayNotifyDto alipayNotifyDto);

    void updatePayOrderAndSavePayFlow(HashMap<String, Object> map);
}
